package e


var MsgFlags = map[int]string{
	SUCCESS:             "处理成功",
	ERROR:               "处理失败",
	InvalidParams:       "请求参数错误",
	NamespaceNotFound:   "服务环境不存在",
	BossTokenNotFound:   "boss登录获取token失败，请检查",
	CustomerCreateError: "创建客户失败",
	AccountCreateError:  "账户创建失败",
}

// GetMsg get error information based on Code
func GetMsg(code int) string {
	msg, ok := MsgFlags[code]
	if ok {
		return msg
	}

	return MsgFlags[ERROR]
}
